package com.dai.zhenfujin.my.activity.wallet;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.dai.zhenfujin.R;
import com.dai.zhenfujin.base.BaseActivity;

/**
 * 零钱的页面
 */
public class LooseChangeActivity extends BaseActivity implements View.OnClickListener{

    private TextView tvMoney,tvTitleName;
    private Button btTopUp;

    private ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loose_change);


        tvMoney = findViewById(R.id.lc_money);
        btTopUp = findViewById(R.id.lc_top_up);

        tvTitleName = findViewById(R.id.title_textview);
        tvTitleName.setVisibility(View.GONE);

        imageView = findViewById(R.id.title_imageview);
        imageView.setOnClickListener(this);
        btTopUp.setOnClickListener(this);



    }

    @Override
    public void onClick(View v) {
         switch (v.getId()){
             case R.id.title_imageview://返回
                 finish();
                 break;
             case R.id.lc_top_up://充值
                 Intent intent = new Intent(this,TopUpActivity.class);
                 startActivity(intent);
                 break;
         }
    }
}
